package com.remon.quartz.config;

import cn.jpush.api.JPushClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JpushConfig {

    @Value("${jpush.key}")
    private String key;
    @Value("${jpush.secret}")
    private String secret;


    @Bean
    public JPushClient pushClient() {
        return new JPushClient(secret, key);
    }

}
